import request from '@/utils/request'
//首页今日营收查询列表
export function getToalAccount(query){
  return request({
    url:'/home/home/getTotalAmount',
    method:'get',
    params:query,
  })
}
export function getRoomNum(query){
  return request({
    url:'/home/home/getRoomNum',
    method:'get',
    params:query,
  })


}
// 查询套餐管理列表
export function listMeal(query) {
  return request({
    url: '/meal/meal/list',
    method: 'get',
    params: query
  })
}

// 查询套餐管理详细
export function getMeal(id) {
  return request({
    url: '/meal/meal/' + id,
    method: 'get'
  })
}

// 新增套餐管理
export function addMeal(data) {
  return request({
    url: '/meal/meal',
    method: 'post',
    data: data
  })
}

// 修改套餐管理
export function updateMeal(data) {
  return request({
    url: '/meal/meal',
    method: 'put',
    data: data
  })
}

// 删除套餐管理
export function delMeal(id) {
  return request({
    url: '/meal/meal/' + id,
    method: 'delete'
  })
}
